home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mintmisc
/
midi_con.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-05
|
590b
|
29 lines
/* MIDI_CON
*
* Little terminal program that reads and writes from the MIDI
* device. Compile as MIDI_CON.TOS
*
* Stephan Baucke @ AC
*/
#include <tos.h>
void main(void)
{
long k;
int i;
for(;;)
{
if (Bconstat(2))
{
k = Bconin(2);
if ((char)k == 0 && (k & 0x00ff0000L) == 0x00610000L)
break; /* UNDO --> abbrechen */
Bconout(3, (int)k);
}
i = 100;
while(Bconstat(3) && --i >= 0)
Bconout(2, (int)Bconin(3));
}
}